\usepackage{titlesec}
\usepackage{fontspec}
\usepackage{indentfirst}
\usepackage{tikz}
\usepackage{xeCJK}

\font\partfont="SimHei" at 18pt
\font\sectionfont="SimHei" at 14pt
\font\subsectionfont="SimHei" at 12pt
\font\subsubsectionfont="SimSun" at 12pt
\font\paragraphfont="FangSong" at 11pt

\linespread{1.2}
\XeTeXlinebreaklocale "zh"
\XeTeXlinebreakskip = 1pt plus 0.5pt minus 0.5pt
%\titleformat{command}[shape]{format}{label}{sep}{before}[after]
%\titleformat{命令}[形式]{格式}{标题头定义}{间距}{前命令}[后命令]
%\titlecontents{标题名}[左间距]{标题格式}{标题标志}{无序号标题}{指引线与页码}[下间距]
\titleformat{\part}{\centering\Huge\partfont}{}{1em}{}
\titleformat{\section}[hang]{\leftline\Huge\sectionfont}{}{1em}{}
\titleformat{\subsection}[hang]{\leftline\Huge\subsectionfont}{}{1em}{}
\titleformat{\subsubsection}[hang]{\leftline\Huge\subsubsectionfont}{}{1em}{}
\titleformat{\paragraph}[hang]{\centering\Huge\paragraphfont}{}{1em}{}

\setmainfont{Times New Roman} 
\setCJKmainfont{FangSong}
\setlength{\parindent}{2em}
\renewcommand\arraystretch{2}  %表格高度
